package cn.jiyun.pojoday10;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: 小周
 * @Package: cn.jiyun.pojoday10
 * @Project: p11_parent
 * @name: Topic
 * @Date: 2023/8/7 15:53
 * @Filename: Topic
 */
@Data
@TableName(value = "topic")
public class Topic implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String tname;
    private Integer aid;
    private Long createman;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date joindate;
}
